package com.pet.user.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="用户信息表单对象")
public class UserInfoFormDTO {
    @ApiModelProperty(value = "主键ID")
    @NotNull(message = "用户ID")
    private Integer id;

    @ApiModelProperty(value = "昵称")
    @NotBlank(message = "昵称")
    private String nickname;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号")
    private String phone;

    @ApiModelProperty(value = "头像")
    private String photo;
}
